import type { IOrder } from "@/types";
import { defineStore } from "pinia";

export const useOrderStore = defineStore('order', {
  state: () => ({
    orderList: [] as IOrder[]
  }),
  actions: {
    addOrder(order: IOrder) {
      this.orderList.push(order)
    }
  }
})
